package com.snopy.designPattern.structure.adapter;

import com.snopy.designPattern.structure.adapter.impl.AudioPlayer;
import lombok.extern.slf4j.Slf4j;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @author snopy
 * @version 1.0.0
 * @classname AdapterPatternDemo
 * @description
 * @email 77912204@qq.com
 * @date 2022/03/02 14:02
 */
@Slf4j
public class AdapterPatternDemo {
    public static void main(String[] args) {
        AudioPlayer player = new AudioPlayer();
        player.play("mp3","asdadsas");
        player.play("mp4","asdadsas");
        player.play("vlc","asdadsas");

        List<String> list = new ArrayList<>();
        Arrays.asList(list);
    }

}
